package com.example.gateway.feign;

import com.example.common.ResultMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author kangshuai
 */
@FeignClient("service-email")
public interface UserFeign {

    /**
     * 获取email
     *
     * @param token
     * @return
     * @throws Exception
     */
    @PostMapping(value = "/user/info", produces = {"application/json;charset=UTF-8"})
    ResultMessage<String> info(@PathVariable("token") String token) throws Exception;
}
